// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_REP_CHECK_INFO_ITEM
// * CreateDate    : 2011-12-26 11:08:53
// * Creater       : CodeSmith
// * LastChangeDate: 2011-12-26 11:08:53
// * LastChanger   : 2011-12-26 11:08:53
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
	[Serializable]
	public partial class RepCheckInfoItemEntity : EntityBase
    {
        public RepCheckInfoItemTable TableSchema
        {
            get
            {
                return RepCheckInfoItemTable.Current;
            }
		}
		
		public RepCheckInfoItemEntity()
        {

        }
		
		public RepCheckInfoItemEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.CheckInfoItemId = Convert.ToString(CommonFunctions.ToObject(dr["CHECK_INFO_ITEM_ID"]));
			this.RegisterItemId = Convert.ToString(CommonFunctions.ToObject(dr["REGISTER_ITEM_ID"]));
			this.CheckInfoId = Convert.ToString(CommonFunctions.ToObject(dr["CHECK_INFO_ID"]));
			this.ProductId = Convert.ToString(CommonFunctions.ToObject(dr["PRODUCT_ID"]));
			this.RepairQty = Convert.ToDecimal(CommonFunctions.ToObject(dr["REPAIR_QTY"]));
			this.Price = Convert.ToDecimal(CommonFunctions.ToObject(dr["PRICE"]));
			this.Remark = Convert.ToString(CommonFunctions.ToObject(dr["REMARK"]));
        }
		
		public RepCheckInfoItemEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.CheckInfoItemId = Convert.ToString(CommonFunctions.ToObject(dr["CHECK_INFO_ITEM_ID"]));
			this.RegisterItemId = Convert.ToString(CommonFunctions.ToObject(dr["REGISTER_ITEM_ID"]));
			this.CheckInfoId = Convert.ToString(CommonFunctions.ToObject(dr["CHECK_INFO_ID"]));
			this.ProductId = Convert.ToString(CommonFunctions.ToObject(dr["PRODUCT_ID"]));
			this.RepairQty = Convert.ToDecimal(CommonFunctions.ToObject(dr["REPAIR_QTY"]));
			this.Price = Convert.ToDecimal(CommonFunctions.ToObject(dr["PRICE"]));
			this.Remark = Convert.ToString(CommonFunctions.ToObject(dr["REMARK"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return RepCheckInfoItemTable.Current;
            }
        }
		
		#region Perporty List
        public string CheckInfoItemId
        {
            get { return Convert.ToString(GetData(RepCheckInfoItemTable.C_CHECK_INFO_ITEM_ID)); }
            set { SetData(RepCheckInfoItemTable.C_CHECK_INFO_ITEM_ID, value); }
        }
		
        public string RegisterItemId
        {
            get { return Convert.ToString(GetData(RepCheckInfoItemTable.C_REGISTER_ITEM_ID)); }
            set { SetData(RepCheckInfoItemTable.C_REGISTER_ITEM_ID, value); }
        }
		
        public string CheckInfoId
        {
            get { return Convert.ToString(GetData(RepCheckInfoItemTable.C_CHECK_INFO_ID)); }
            set { SetData(RepCheckInfoItemTable.C_CHECK_INFO_ID, value); }
        }
		
        public string ProductId
        {
            get { return Convert.ToString(GetData(RepCheckInfoItemTable.C_PRODUCT_ID)); }
            set { SetData(RepCheckInfoItemTable.C_PRODUCT_ID, value); }
        }
		
        public decimal RepairQty
        {
            get { return Convert.ToDecimal(GetData(RepCheckInfoItemTable.C_REPAIR_QTY)); }
            set { SetData(RepCheckInfoItemTable.C_REPAIR_QTY, value); }
        }
		
        public decimal Price
        {
            get { return Convert.ToDecimal(GetData(RepCheckInfoItemTable.C_PRICE)); }
            set { SetData(RepCheckInfoItemTable.C_PRICE, value); }
        }
		
        public string Remark
        {
            get { return Convert.ToString(GetData(RepCheckInfoItemTable.C_REMARK)); }
            set { SetData(RepCheckInfoItemTable.C_REMARK, value); }
        }
		
		#endregion
	}
	
	
}	

